package me.ak.gui;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;
import org.newdawn.slick.util.InputAdapter;

public class Canvas extends StateBasedGame {
	public static GuiScore theScore;
	public AppGameContainer agc;
	public static final int WIDTH = 640, HEIGHT = 480;

	public Canvas(GuiScore score) {
		super("UberScore");
		theScore = score;
		try {
			agc = new AppGameContainer(this);
			agc.setDisplayMode(WIDTH, HEIGHT, false);
			//agc.setResizable(true);
			agc.start();
		} catch (SlickException e) {}
	}


	@Override
	public void initStatesList(GameContainer gc) throws SlickException {
		gc.setShowFPS(false);
		this.addState(new MainCanvas(theScore));
		this.enterState(0);
	}

/*
	@Override
	protected URL getThemeURL() {
		return Canvas.class.getResource("/me/ak/utils/chutzpah.xml");
	}
	*/
	
	

}
